/*
 * @Copyright: Copyright (C) AMCAX, All rights reserved.
 * @Author: 殷建峰
 * @Date: 2024-03-28 09:33:17
 * @LastEditTime: 2025-03-04 15:16:49
 * @LastEditors: 殷建峰
 * @Description:
 */
// import { List } from 'antd'
import { ListItem } from '@mui/material';
import { ChatHumanBox, ChatLoadingBox, ChatRobotBox } from './components';

export default (props: any) => {
  return (
    <>
      <ListItem key={props.key}>
        {props.item.type === 'human' && <ChatHumanBox item={props.item} />}
        {props.item.type === 'robot' && <ChatRobotBox item={props.item} />}
        {props.item.type === 'loading' && <ChatLoadingBox />}
      </ListItem>
    </>
  );
};
